package com.cskaoyan.service.wxcart;

import com.cskaoyan.model.bo.wxcart.CartAddBo;
import com.cskaoyan.model.bo.wxcart.CartCheckedBo;
import com.cskaoyan.model.bo.wxcart.CartCheckoutIdBo;
import com.cskaoyan.model.bo.wxcart.CartUpdateBo;
import com.cskaoyan.model.vo.wxcart.WxCartTotalListVo;
import com.cskaoyan.model.vo.wxcart.WxCheckoutTotalVo;

import java.util.List;

/**
 * @program: project-market
 * @description:
 * @author: Weiwei Liu
 * @create: 2021-12-02 15:36
 **/

public interface WxCartService {
    WxCartTotalListVo list(Integer userId);

    WxCartTotalListVo checked(CartCheckedBo bo, Integer userId);

    Integer update(CartUpdateBo bo, Integer id);

    Integer delete(List productIds, Integer userId);

    Integer add(CartAddBo bo, Integer id);

    WxCheckoutTotalVo checkout(CartCheckoutIdBo bo, Integer uid);

    Integer fastadd(CartAddBo bo, Integer uid);
}
